package org.anyin.gitee.cloud.center.upms.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.anyin.gitee.cloud.center.upms.controller.form.SysMenuPageQueryForm;
import org.anyin.gitee.cloud.center.upms.controller.form.SysMenuSaveForm;
import org.anyin.gitee.cloud.center.upms.model.SysMenu;
import org.anyin.gitee.cloud.center.upms.model.ext.SysMenuExt;
import org.anyin.gitee.cloud.center.upms.service.dto.SysMenuInfoDTO;
import org.anyin.gitee.cloud.center.upms.service.dto.SysMenuPageQueryDTO;
import org.anyin.gitee.cloud.center.upms.service.dto.SysMenuSaveDTO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface SysMenuConvert {

    Page<SysMenuInfoDTO> getSysMenuInfoDTOPage(Page<SysMenuExt> page);

    SysMenuInfoDTO getSysMenuInfoDTO(SysMenuExt page);

    SysMenuPageQueryDTO getSysMenuPageQueryDTO(SysMenuPageQueryForm form);

    SysMenu getSysMenu(SysMenuSaveDTO dto);

    SysMenuInfoDTO getSysMenuInfoDTO(SysMenu menu);

    SysMenuSaveDTO getSysMenuSaveDTO(SysMenuSaveForm from);
}
